package com.kerwin.project.videolist.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * video实体
 * @author KERWIN
 *
 */
@Entity
@Table(name = "K_VIDEO")
public class KVideo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;				//id
	private String videoName;		//电影名称
	private String videoPoster;		//电影海报
	private String videoAbout;		//电影简介
	private String onlineAddr;		//在线观看地址
	private String downloadAddr;	//下载地址
	private String enableFlag;		//flag
	private Date createDate;		//创建时间
	private Long downloadNum;		//下载次数
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "VIDEO_NAME", length = 50)
	public String getVideoName() {
		return videoName;
	}
	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}
	
	@Column(name = "VIDEO_POSTER", length = 1000)
	public String getVideoPoster() {
		return videoPoster;
	}
	public void setVideoPoster(String videoPoster) {
		this.videoPoster = videoPoster;
	}
	
	@Column(name = "VIDEO_ABOUT", length = 10000)
	public String getVideoAbout() {
		return videoAbout;
	}
	public void setVideoAbout(String videoAbout) {
		this.videoAbout = videoAbout;
	}
	
	@Column(name = "ONLINE_ADDR", length = 1000)
	public String getOnlineAddr() {
		return onlineAddr;
	}
	public void setOnlineAddr(String onlineAddr) {
		this.onlineAddr = onlineAddr;
	}
	@Column(name = "DOWNLOAD_ADDR", length = 1000)
	public String getDownloadAddr() {
		return downloadAddr;
	}
	public void setDownloadAddr(String downloadAddr) {
		this.downloadAddr = downloadAddr;
	}
	@Column(name = "ENABLE_FLAG", length = 1)
	public String getEnableFlag() {
		return enableFlag;
	}
	public void setEnableFlag(String enableFlag) {
		this.enableFlag = enableFlag;
	}
	
	@Column(name = "CREATE_DATE")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	@Column(name = "DOWNLOAD_NUM")
	public Long getDownloadNum() {
		return downloadNum;
	}
	public void setDownloadNum(Long downloadNum) {
		this.downloadNum = downloadNum;
	}

}
